
package com.joysuch.wwyt.datadump.biz.convertor;

import cn.zlg.common.datadump.annotation.DataDumpField;
import cn.zlg.common.datadump.convertor.FieldValueConvert;
import org.springframework.stereotype.Component;

@Component
public class ImportYesNoToYNConvertor implements FieldValueConvert<String, String> {

    @Override
    public String convert(Object bean, String value, DataDumpField dataField) {
        if ("是".equals(value)) {
            return "Y";
        }
        return "N";
    }

}
